/*
 * 登录、注册接口管理
 */

import { post, get, put } from '../plugins/request'

// 代理人登录
export const agentLogin = (params) => post('/api/agents/home/login', params)

// 代理人验证码登录
export const agentCodeLogin = (params) =>
  post('/api/agents/home/sms-code-login', params)

// 发送验证码
export const getVCodeRequest = (params) => post('/api/captcha', params)

// 忘记密码下一步
export const next = (params) => get('/api/users/consumer/verify/phone', params)

//发明人/代理人确认密码
export const confirmPsw = (params) =>
  put('/api/users/consumer/forget/pwd', params)
